/**
 * 
 */
package com.manolo.component.desing;

import java.awt.Color;
import java.awt.FlowLayout;
import java.awt.Graphics;

import javax.swing.JFrame;


/**
 * @author gustavo
 * 
 */
public class WindowRunMultiPlayer extends JFrame {

	ScreenMultiPlayer gamePanel ;
	Screen gamePanel2 ;
	
	
	
	public WindowRunMultiPlayer() {
		setSize(800, 600);
		setDefaultCloseOperation(EXIT_ON_CLOSE);
		
	}
	
	@Override
	public void update(Graphics g) {
		gamePanel.update(g);
		gamePanel2.update(g);
	}
	
	@Override
	public void paint(Graphics g) {
		gamePanel.paint(g);
		gamePanel2.paint(g);
	}

	public void addComponet(){
		gamePanel = new ScreenMultiPlayer();
		gamePanel2 = new Screen();
        getContentPane().add(gamePanel);
//        getContentPane().add(gamePanel2);
	}
	
	public void start(){
		addComponet();
		gamePanel.init();
		gamePanel.start();
		show();
	}
	
	
	public static void main(String[] args) {
		WindowRunMultiPlayer  exec = new WindowRunMultiPlayer();
		exec.start();
	}

	


}
